From 1eb86d63948eb863d132f062407a631a68851867 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 20 Nov 2021 00:44:47 +0100 Subject: [PATCH] widget: Remove a check That consistency check is entirely outdated and just prints confusing stuff. --- gtk/gtkwidget.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 65c62be6a0..192cc62de3 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -3876,18 +3876,6 @@ gtk_widget_adjust_size_allocation (GtkWidget *widget, &allocation->x, &allocation->width); } - -#ifdef G_ENABLE_CONSISTENCY_CHECKS - if ((min_width > allocation->width + priv->margin.left + priv->margin.right || - min_height > allocation->height + priv->margin.top + priv->margin.bottom) && - !GTK_IS_SCROLLABLE (widget)) - g_warning ("gtk_widget_size_allocate(): attempt to underallocate %s%s %s %p. " - "Allocation is %dx%d, but minimum required size is %dx%d.", - priv->parent ? G_OBJECT_TYPE_NAME (priv->parent) : "", priv->parent ? "'s child" : "toplevel", - G_OBJECT_TYPE_NAME (widget), widget, - allocation->width, allocation->height, - min_width, min_height); -#endif } /** -- 2.30.2